<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class GoodsController extends AppViewController {

var $uses=array('good');

function listGoods() {

        $goods=$this->good->findAll();
        debug($goods);
        
        $this->smarty->caching = true;
        $this->smarty->cache_lifetime = 3600*5;
        $this->smarty->assign('SomeValue', "testtest");
        $this->smarty->assign('keywords', "keyword");
        $this->smarty->assign('description', "description");
        $this->smarty->assign('page_title', "page_title");
        $this->smarty->assign('goods', $goods);
        $this->smarty->display('theme/layout.tpl');
       //$this->smarty->display('theme/components/goods.htm');
	}

}
?>